<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
    <h1 align="center">欢迎登录转账系统</h1>
    <div style="margin: auto;width: 400px">
        <c:if test="${sessionScope.msg != null}">
            <h4 style="color: red">${sessionScope.msg}</h4>
            <c:remove var="msg" scope="session"></c:remove>
        </c:if>
        <form action="./apiLogin" method="post">
            <table style="width: 390px;" cellspacing="10px">
                <tr>
                    <td>用户名</td>
                    <td>
                        <input type="text" name="uname" value="">
                    </td>
                </tr>
                <tr>
                    <td>密码</td>
                    <td>
                        <input type="password" name="pwd" value="">
                    </td>
                </tr>
                <tr>
                    <td><button type="submit">登录</button> </td>
                    <td><button type="reset">重置</button></td>
                </tr>
            </table>

        </form>

    </div>
</body>
</html>
